-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[dotnet] Introduce global editroconfig #16420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
Thank you, @nvborisenko for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
PR Code Suggestions ✨Explore these optional code suggestions:
|
isn't there a linter/formatter to fix and enforce that stuff instead of doing it through your editor? |
It is possible to do it via cli: |
csharp_space_between_square_brackets = false | ||
|
||
# License header | ||
file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AI is good:
The new .editorconfig file contains a file_header_template with an incorrect
license (MIT License for .NET Foundation) instead of the project's Apache 2.0
license. This template should be removed or corrected to avoid legal issues.
User description
Code style is opiniated. We want to introduce some rules. But which rules - it is opiniated again.
💥 What does this PR do?
I took rules from dotnet itself: https://github.com/dotnet/runtime/blob/main/.editorconfig
🔧 Implementation Notes
And executed
dotnet format
🔄 Types of changes
PR Type
Other
Description
Introduce global
.editorconfig
with comprehensive C# formatting rulesReorder
using
directives to placeSystem
namespaces firstAdjust code formatting: braces, spacing, and indentation per new rules
Apply consistent code style across entire .NET codebase
Diagram Walkthrough
File Walkthrough
1 files
Add comprehensive editorconfig with C# formatting rules
18 files
Adjust brace placement in switch cases
Reformat switch case braces
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
Reorder using directives
101 files